{include file="admin/header.tpl" title="header" }
<div id="content">
      {php} echo display_msg(); {/php}
      <h2>{$post.module_name}</h2>
      <div class="lstable">
       <form action="{$baseurl}/admin/{$post.file_name}" method="get">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="15%" align="left" valign="middle"><strong>Keyword :</strong></td>
            <td width="27%" align="left" valign="middle"><input type="text" name="keyword" value="{$post.keyword}"  /></td>
            <td width="55%">&nbsp;</td>
          </tr>
          
           <tr>
            <td align="left" valign="middle">&nbsp;</td>
            <td align="left" valign="middle">
            	 <input type="submit"  class="btncss" name="submit"  value="Search" /> &nbsp;
                <input class="btncss" type="button" onclick="location.href='{$baseurl}/admin/{$post.file_name}'" value="Reset" />
               </td>
          </tr>
        </table>
        </form>
      </div>
      <div><img src="{$admin_imgurl}/spacer.gif" width="1" height="25" alt="spacer" /></div>
      
      <div>
        <table cellspacing="0" cellpadding="0" class="engineTable">
          <thead>
            <tr >
              <th width="8%" align="center" valign="top" > Sr. No</th>
              <th width="30%" align="left" valign="top">Question Statement</th>
              <th width="30%" align="left" valign="top">Question Description</th>
              <th width="12%" align="center" valign="top" colspan="2">Actions</th>
             
            </tr>
          </thead>
          <tbody>
          {assign var='counter' value=$pagination_start}
       		{foreach from=$listing_data item=row}
            {assign var='counter' value=$counter+1}     
            <tr class="{cycle values="even,odd"}">
              <td align="center" valign="top">{$counter}</td>
              <td align="left" valign="top">{$row.question_stmt}</td>
              <td align="left" valign="top">{$row.question_description}</td>
              <td align="center"><a title="Delete" href="{$baseurl}/admin/{$post.file_name}?action=delete&id={$row.id}" onClick="return confirm('Are You Sure To Delete?')"><img src="{$admin_imgurl}/del.png"  /> </a></td>
            </tr>
        	{foreachelse}
           <tr><td colspan="9" align="center"> No Record Found </td></tr>
       	 {/foreach}
            
          </tbody>
        </table>
        <div class="pagination tn">
          <div class="page_limit_div">
        		 {$page_limit_select}
	        </div>
          {$pagination}
          <div class="totalno"><strong>Total Records:</strong> {$total_records}</div>
          <div class="clear"></div>
        </div>
      </div>
    </div>
 {include file="admin/footer.tpl" title="footer"}   